<!-- 引入头部 -->
<include file="header" />
<script type="text/javascript" src="__PUBLIC__/js/home/index.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/home/sharewx_v1.0.0.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/home/share2otherwebsite.js"></script>
<!-- 注意引入的次序，endlesspase 需要share2otherwebsite里的方法 -->
<script type="text/javascript" src="__PUBLIC__/js/home/endlesspage.js"></script>
<!-- 引入点赞、差评效果设置js -->
<script type="text/javascript" src="__PUBLIC__/js/home/praise_bad.js"></script>

<link rel="stylesheet" href="__PUBLIC__/css/index-share-style.css">
<!--<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=670979742" 
	type="text/javascript" charset="utf-8"></script>-->
    

<style type="text/css">
.my-panel-footer-style {
    font-size: 11px;
}

.my-a-style {
/*    color: #16a085;*/
    text-decoration: none;
    -webkit-transition: .25s;
    transition: .25s;
}
.right-panel-style {
    font-size: 14px; margin-right: -10px; box-shadow: 1px 2px 3px #ccc;-webkit-box-shadow: 1px 2px 3px #ccc;
}
    
.my-panel-body {
    padding: 5px;
} 

</style>
<body>
<!-- 引入第三方登录页面 -->
<include file="common/login4tasklist" />

<!-- 设置session的值到hidden里，在滚动下一页中需要用到，评论时候也用到-->
<!--    登录用户的信息 用户名  用户头像  用户的主页 -->
<input type="hidden" value="{$_SESSION['WEIBOUSERINFO']['wbusername']}" name="wbusername" id="wbusername_id">
<input type="hidden" value="{$_SESSION['WEIBOUSERINFO']['wbuserheadpic']}" name="wbuserheadpic" id="wbuserheadpic_id">
<input type="hidden" value="{$_SESSION['WEIBOUSERINFO']['wbuserwebsite']}" name="wbuserwebsite" id="wbuserwebsite_id">
    
<!-- 文章类型 -->
<input type="hidden" value="<?=$_GET['cont_type']?>" name="cont_type" id="cont_type_id">
    
 <!-- 网站简介 -->
<div class="jumbotron" style="background: #f0efef;">
    <center>
    <!-- <h2 style="display: inline;">ibeginner</h2> -->
    <small style="color: #3c5269; font-size: 25px;"><span class="glyphicon glyphicon-option-horizontal">&nbsp;事无巨细，集腋成裘！</span></small>
    </center>
</div>
    
<div class="container">
    
    <volist name="centList" id="vo">
        
        <div class="row">
            <div class="col-md-12 col-sm-12">
                    <h5 style="color: #3c5269;">
                        <a href="{:U('Home/Index/detail', array('id' => $vo['id']))}" 
                            style="color: #3c5269;" target="_blank">{$vo.title}</a>
                    </h5>
                   <p>{$vo.ctt_summary}</p>
                <!-- 标签tag区 -->
<!--
                <span class="tag-tools" style="">
                    <span class="smaller400noshow">
                        <a href="http://www.weibo.com/ubuntuvim" target="_blank">tag1</a>&nbsp;
                        <a href="http://www.weibo.com/ubuntuvim" target="_blank">tag2</a>&nbsp;
                        <a href="http://www.weibo.com/ubuntuvim" target="_blank">tag3</a>
                    </span>
                </span>
-->
                
                <span class="u-commt-share-tools shareTo" style="">
                    <span class="smaller400noshow">
                        <a href="{:('MY_WEIBO')}" target="_blank">ubuntuvim</a>
                        &nbsp;&nbsp;<font style="color: #000;">{$vo.public_time|substr=###,0,16}</font>&nbsp;&nbsp;
                    </span>
                    
                    <span class="glyphicon glyphicon-arrow-up" style="cursor: pointer;" onclick="praise(this, '{$vo.id}');">顶</span>(<font id="praise_count_id_{$vo.id}">{$vo.praise_count}</font>)&nbsp;&nbsp;&nbsp;
                    <span class="glyphicon glyphicon-arrow-down" style="cursor: pointer;" onclick="bad(this, '{$vo.id}');">踩</span>(<font id="bad_count_id_{$vo.id}">{$vo.bad_count}</font>)&nbsp;&nbsp;
                    <span class="share-box js-list-share-btn shareshowbtn" aid="114718" title="分享" onmouseover="shareshow('showShareTools_{$vo.id}')" onmouseout="sharehide('showShareTools_{$vo.id}')" style="cursor: pointer;">
                        <span class="glyphicon glyphicon-share-alt">分享</span>
                        
                        <div class="share" style="display: none;" bosszone="kjsy_share" id="showShareTools_{$vo.id}">
                            <a onclick="postToWb(this.name,this.href,this.id); return false;" title="分享到微博" class="sharewb" name="{$vo.title}" href="{$vo.ctt_img_url}" id="{:U('Home/Index/detail', array('id' => $vo['id']))}">分享到微薄</a>

                            <a onclick="postToQzone(this.name,'{$vo.ctt_summary}',this.href,this.id); return false;" title="分享到QQ空间" class="shareqzone" name="{$vo.title}" href="{$vo.ctt_img_url}" id="{:U('Home/Index/detail', array('id' => $vo['id']))}">分享到空间</a>

                            <a href="javascript:void(0)" onclick="shareToSina(this.name,this.id); return false;" title="分享到新浪微博" class="sharesina" name="{$vo.title}" id="{:U('Home/Index/detail', array('id' => $vo['id']))}">分享到新浪微博</a>

                            <a onclick="postToQQEmail(this.name,'{$vo.ctt_summary}',this.id,this.href); return false;" title="分享到QQ邮箱" class="shareqqemail" name="{$vo.title}" id="{$vo.ctt_img_url}" href="{:U('Home/Index/detail', array('id' => $vo['id']))}">分享到QQ邮箱</a>

                            <a onclick="shareToQQ(this.name,this.href,this.id); return false;" title="分享到QQ好友" class="sharepengyou" name="{$vo.title}" furl="{$vo.ctt_img_url}" id="{:U('Home/Index/detail', array('id' => $vo['id']))}">分享到QQ好友</a>
                            
                            <a href="javascript:void(0)" onclick="shareToRenren(this.name,this.id); return false;" title="分享到人人" class="sharerenren" name="【{$vo.title}" id="{:U('Home/Index/detail', array('id' => $vo['id']))}">分享到人人</a>

                            <a href="javascript:void(0)" onclick="shareToKaixin(this.name,this.id); return false;" title="分享到开心" class="sharekaixin" name="{$vo.title}" id="{:U('Home/Index/detail', array('id' => $vo['id']))}">分享到开心</a>
                        </div>
                    </span>
                    
                    &nbsp;&nbsp;
                    <span class="glyphicon glyphicon-comment" style="cursor: pointer;" onclick="toDetailPage('{:U('Home/Index/detail', array('id' => $vo['id']))}');">评论({$vo.comment_count})</span>
                    <!-- 首页不再防止评论框，点击评论转到详细页面的评论区
                    -->
                    
                    &nbsp;&nbsp;
                    <volist name="typeList" id="vo2">
                      <if condition="$vo2['type_no'] eq $vo['cont_type']" >
                      <a href="{:U('Home/Index/index', array('cont_type' => $vo['cont_type']))}" class="">{$vo2.type_name}</a>
                      </if>
                    </volist>
                </span>
            </div>
        </div> <!-- //row -->
        <hr style="height:1px;border:none;border-top:1px dashed #cacaca;margin: 10px 0 10px 0;" />
    </volist>
    
    <?php
        include_once('oauth2/sina/saeOauth2Util.php');
    ?>
    <input type="hidden" value="{$currentURL}" name="currentUrl" id="currentUrl">
    <input type="hidden" value="{$code_url}" name="code_url" id="code_url">
    <div class="showNewCmInfoBody" style="display: none;" id="showNewCmInfoBodyId">
        <!-- 动态加载的数据显示在本标签的后面 -->
    </div>
<!-- 
    <div class="alert alert-warning" id="tipLastPageInfo">
      已经是最后一页了
    </div>
 -->
    <div class="loaddiv">
        <img src="__PUBLIC__/images/loading/5-121204193955-51.gif" />
    </div>
    
</div> <!-- /container -->

<!-- 右侧的工具栏 -->    
<div id="moquu_wxin" class="moquu_wxin"><a href="javascript:void(0)"><div class="moquu_wxinh"></div></a></div>
<div id="moquu_wshare" class="moquu_wshare"><a href="javascript:void(0)"><div class="moquu_wshareh"></div></a></div>  

<a id="moquu_top" href="javascript:void(0)"></a>

</body>

<!-- 引入尾部 -->
<include file="footer" />
